startActivityForResult
Start new activity with options, if able, for which you would like a result when it finished.
In Android 4.1+ additional options were introduced to allow for more control on activity launch animations. Applications can use this method along with ActivityOptionsCompat to use these animations when available. When run on versions of the platform where this feature does not exist the activity will be launched normally.
Parameters
Origin activity to launch from.
The description of the activity to start.
If >= 0, this code will be returned in onActivityResult() when the activity exits.
Additional options for how the Activity should be started. May be null if there are no options. See ActivityOptionsCompat for how to build the Bundle supplied here; there are no supported definitions for building it manually.